package com.edu.bean;

/**
 * @Author:何包蛋
 * @Date :2022/10/26 - 10 - 26 - 14:52
 */
public class Person {

    private int personId;

    private String personName;

    private Car car;

    public int getPersonId() {
        return personId;
    }

    public void setPersonId(int personId) {
        this.personId = personId;
    }

    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public Car getCar() {
        return car;
    }

    public void setCar(Car car) {
        this.car = car;
    }

    public Person() {

        System.out.println("创建了person类");
    }

    public Person(int personId, String personName, Car car) {
        this.personId = personId;
        this.personName = personName;
        this.car = car;
    }

    @Override
    public String toString() {
        return "Person{" +
                "personId=" + personId +
                ", personName='" + personName + '\'' +
                ", car=" + car +
                '}';
    }
}
